# This is a sample Python script.

# Press Shift+F10 to execute it or replace it with your code.
# Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings.


def print_hi(name):
    # Use a breakpoint in the code line below to debug your script.
    print(f'Hi, {name}')  # Press Ctrl+8 to toggle the breakpoint.


# Press the green button in the gutter to run the script.
if __name__ == '__main__':
    print_hi('PyCharm')
    import TensorPy as tp

    tp.Graph().as_defaults()
    a = tp.Variable([[2, 1], [-1, -2]])
    b = tp.Variable([1, 1])
    c = tp.Placeholder()

    y = tp.Matmul(a, b)
    z = tp.Add(y, c)
    print(z)

    session = tp.Session()
    output = session.run(z, {c: [3, 3]})
    print(output)

# See PyCharm help at https://www.jetbrains.com/help/pycharm/
